<template>
  <div class="detail">
    <div class="title">活动详情</div>
    <iframe ref="iframe" :src="url" frameborder="0"></iframe>
  </div>
</template>

<script>
export default {
  props: {
    url: String
  }
}
</script>

<style lang="less" scoped>
.detail {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
  background-color: #fff;
  padding-top: 54px;

  .title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    line-height: 34px;
    color: #4a4a4a;
    font-weight: 700;
    z-index: 12;
  }

  iframe {
    min-height: 100vh;
    width: 100%;
  }
}
</style>
